#include <security/pam_appl.h>

int main(){
	static int pam_err;
	static struct pam_conv pamc = { openpam_nullconv, NULL };
	static pam_handle_t *pamh;



	pam_err = pam_start("deny", "toto", &pamc, &pamh);
	if (pam_err != PAM_SUCCESS) {
	fprintf(stderr, "On a une erreur\n");
	} else {
	fprintf(stdout, "Sortie avec succès\n");
	}
	return 0;
}

